<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
	<head>
		<title>商店查询订单</title>




		<!-- Demo page code -->

		<style type="text/css">
#line-chart {
	height: 300px;
	width: 800px;
	margin: 0px auto;
	margin-top: 1em;
}

.brand {
	font-family: georgia, serif;
}

.brand .first {
	color: #ccc;
	font-style: italic;
}

.brand .second {
	color: #fff;
	font-weight: bold;
}
.content1 {
min-width: 400px;
position: relative;
min-height: 650px;
background: #fff;
margin-left: 240px;
margin-top: 6px;
}
</style>


	</head>
	<body class="">

		<jsp:include page="top.jsp"></jsp:include>
		<!-- 内容 开始 -->
		<div class="content1" style="background-image:url(tm.png) ;background-color:transparent;">

			<div class="header">

				<h1 class="page-title">
					商店查询订单
				</h1>
			</div>

			<ul class="breadcrumb">
				<li>
					<a href="/sell_food/marchantview/index.jsp">主页</a>
					<span class="divider">/</span>
				</li>
				<li class="active">
					商店查询订单
				</li>
			</ul>

			<div class="container-fluid">
				<div class="row-fluid">


					<div class="well" style="background-image:url(tm.png) ;background-color:transparent;">
						<ul class="nav nav-tabs">
							<li class="active">
								<a href="#home" data-toggle="tab">未完成订单详情</a>
							</li>
							<li>
								<a href="#profile" data-toggle="tab">完成订单信息</a>
							</li>
						</ul>

						<div id="myTabContent" class="tab-content">
						
							<div class="tab-pane active in" id="home">
								<div class="container-fluid">
									<div class="row-fluid">
										<div class="span12">
											<table class="table table-bordered">
												<thead>
													<tr>
														<th>
															订单编号
														</th>
														<th>
															订单商品
														</th>													
														<th>
															交易时间
														</th>
														<th>
															状态
														</th>
														<th>
															操作
														</th>
													</tr>
												</thead>
												<tbody>
												<s:iterator value="allorder1" status="st">
													<tr class="warning">
														<td>
														<a href="/sell_food/detailorder?zhangNO=<s:property
															value="zhangNO" />">
															<s:property
															value="zhangNO" />
															</a>
														</td>
														<td>
															<s:property
															value="food" />
														</td>
														<td>
														
															<s:date name="expireTime" format="dd/MM/yyyy hh:mm:ss" />
															
														</td>
														<td>
														
															用户新建订单
															
														</td>
														<td>
															<a href="/sell_food/changeorder?zhangNO=<s:property value="zhangNO"/>">
																<button class="btn btn-danger" type="button">
																	点击开始制作
																</button>
																</a>
														</td>
													</tr>
													</s:iterator>
													<s:iterator value="allorder2" status="st">
													<tr class="info">
														<td>
														<a href="/sell_food/detailorder?zhangNO=<s:property
															value="zhangNO" />">
															<s:property
															value="zhangNO" />
															</a>
														</td>
														<td>
															<s:property
															value="food" />
														</td>
														<td>
															<s:date name="expireTime" format="dd/MM/yyyy hh:mm:ss" />
														</td>
														<td>
															正在处理中
														</td>
														<td>
															<a href="/sell_food/changeorder?zhangNO=<s:property value="zhangNO"/>">
																<button class="btn btn-success" type="button">
																	订单交易完成
																</button>
																</a>
														</td>
													</tr>
													</s:iterator>
												</tbody>
											</table>
										</div>
									</div>
								</div>
							</div>
							<div class="tab-pane fade" id="profile">
								<div class="container-fluid">
									<div class="row-fluid">
										<div class="span12">
											<table class="table table-bordered">
												<thead>
													<tr>
														<th>
															订单编号
														</th>
														<th>
															订单商品
														</th>													
														<th>
															交易时间
														</th>
														<th>
															状态
														</th>
														<th>
															操作
														</th>
													</tr>
												</thead>
												<tbody>
												<s:iterator value="allorder3" status="st">
													<tr class="success">
														<td>
														<a href="/sell_food/detailorder?zhangNO=<s:property
															value="zhangNO" />">
															<s:property
															value="zhangNO" />
															</a>
														</td>
														<td>
															<s:property
															value="food" />
														</td>
														<td>
															<s:date name="expireTime" format="dd/MM/yyyy hh:mm:ss" />
														</td>
														<td>
															交易成功
														</td>
														<td>
															----
														</td>
													</tr>
										</s:iterator>
												</tbody>
											</table>
										</div>
									</div>
								</div>
							</div>
						</div>

					</div>
				

				</div>
			</div>
		</div>
		<script type="text/javascript">
	$("[rel=tooltip]").tooltip();
	$(function() {
		$('.demo-cancel-click').click(function() {
			return false;
		});
	});
</script>
	</body>
</html>
